package com.longshihan.lifecycler;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.widget.ScrollView;

import com.longshihan.lifecycler.header.MaterialRoteHeader;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.scwang.smartrefresh.layout.api.RefreshLayout;
import com.scwang.smartrefresh.layout.listener.OnRefreshListener;

public class Main2Activity extends AppCompatActivity {

    private ScrollView mScrollView;
    private SmartRefreshLayout mVerticalswiperefresh;
    private MaterialRoteHeader materialHeader;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        initView();
    }

    private void initView() {
        mScrollView = (ScrollView) findViewById(R.id.scrollView);
        mVerticalswiperefresh =  findViewById(R.id.verticalswiperefresh);
        materialHeader=findViewById(R.id.verticalswiperefresh_header);
        mVerticalswiperefresh.setOnRefreshListener(new OnRefreshListener() {
            @Override
            public void onRefresh(@NonNull RefreshLayout refreshLayout) {

            }
        });


    }
}
